package com.admin.user.feignService.impl;

import com.admin.user.feignService.UserFeignCreditService;
import com.admin.user.service.ArUserService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.client.model.pojo.user.ArUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author : RulerWood
 * @Data : 2024/4/12 - 16:40
 */
@Service
public class UserFeignCreditServiceImpl implements UserFeignCreditService {
    @Autowired
    private ArUserService arUserService;
    @Override
    public ArUser findCreditUser(String iden, String mobile) {
        QueryWrapper<ArUser> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("mobile",mobile);
        queryWrapper.eq("iden",iden);
        return this.arUserService.getOne(queryWrapper);
    }
}
